import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:mypeiwan/widgets/peiwanitem.dart';

class MoreItemsPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _MoreItemsPageState();
  }
}

class _MoreItemsPageState extends State<MoreItemsPage> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("陪玩项目"),
        ),
        body: Container(
          child: Card(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text("陪玩项目"),
                Expanded(
                  child: GridView.count(
                    mainAxisSpacing: 20,
                    crossAxisSpacing: 20,
                    crossAxisCount: 4,
                    children: [
                      PeiwanItem(
                          itemName: "逛街看电影",
                          icon: Image.asset("images/movie_icon.png")),
                      PeiwanItem(
                          itemName: "美食探店",
                          icon: Image.asset("images/food_icon.png")),
                      PeiwanItem(
                          itemName: "密室剧本杀",
                          icon: Image.asset("images/jubensha_icon.png")),
                      PeiwanItem(
                          itemName: "体育运动",
                          icon: Image.asset("images/sport_icon.png")),
                      PeiwanItem(
                          itemName: "电竞网咖",
                          icon: Image.asset("images/game_icon.png")),
                      PeiwanItem(
                          itemName: "静吧酒吧",
                          icon: Image.asset("images/bear_bar_icon.png")),
                      PeiwanItem(
                          itemName: "量贩K歌",
                          icon: Image.asset("images/sing_icon.png")),
                      PeiwanItem(
                          itemName: "一日游",
                          icon: Image.asset("images/travel_icon.png")),
                      PeiwanItem(
                          itemName: "吃喝玩乐",
                          icon: Image.asset("images/play_icon.png")),
                      PeiwanItem(
                          itemName: "商务招待",
                          icon: Image.asset("images/business_icon.png")),
                      PeiwanItem(
                          itemName: "颜值",
                          icon: Image.asset("images/beauty_icon.png")),
                    ],
                  ),
                )
              ],
            ),
          ),
        ),
      ),
    );
  }
}
